<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Modules
 *
 * @author Alen
 */
class Modules {
    
    public $tpl;
    
    //put your code here
    function get_module_config($id){
        switch ($id){
            case 'article_list':
                return array('12','24','article_list.tpl');
            case 'article_list:6:24':
                return array('6','24','article_list_6x24.tpl');
            case 'catalog_list':
                return array('-1','24','catalog_list.tpl');
        }
    }
    
    function read_module_tpl($id){
        $conf=$this->get_module_config($id);
        $this->tpl=new Smarty();
        
    }
}

?>
